/* 基础样式设置 */
body {
    padding-top: 70px;
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f8f8f8;
    color: #333;
    transition: background-color 0.3s ease;
    height: 100%;
}

/* 夜间模式样式 */
body.night-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* 内容容器 */
.content-wrapper {
    padding: 20px 0;
    min-height: calc(100vh - 110px);
}

/* 顶部导航栏 */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e7e7e7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

body.night-mode .navbar {
    background-color: #2c2c2c;
    border-bottom: 1px solid #444;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

body.night-mode .navbar-brand {
    color: #e0e0e0;
}

/* 左侧章节目录 */
#chapter-sidebar {
    background-color: #fff;
    border-right: 1px solid #e7e7e7;
    padding: 20px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.night-mode #chapter-sidebar {
    background-color: #2c2c2c;
    border-right: 1px solid #444;
}

.sidebar-header h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7e7e7;
    color: #555;
    transition: all 0.3s ease;
}

body.night-mode .sidebar-header h3 {
    color: #ccc;
    border-bottom: 1px solid #444;
}

.chapter-list .list-group-item {
    border: none;
    border-radius: 0;
    background-color: transparent;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.chapter-list .list-group-item a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

body.night-mode .chapter-list .list-group-item a {
    color: #e0e0e0;
}

.chapter-list .list-group-item.active {
    background-color: #f5f5f5;
}

body.night-mode .chapter-list .list-group-item.active {
    background-color: #3d3d3d;
}

.chapter-list .list-group-item:hover {
    background-color: #f0f0f0;
}

body.night-mode .chapter-list .list-group-item:hover {
    background-color: #353535;
}

/* 中间小说内容区 */
main {
    padding: 30px 60px;
    background-color: #fff;
    min-height: calc(100vh - 110px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.night-mode main {
    background-color: #2c2c2c;
}

.chapter-navigation {
    margin-bottom: 30px;
}

.chapter-navigation .btn {
    margin: 0 10px;
    min-width: 120px;
    transition: all 0.2s ease;
}

.chapter-title h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    transition: color 0.3s ease;
}

body.night-mode .chapter-title h1 {
    color: #e0e0e0;
}

.chapter-content {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 5px;
}

.chapter-content p {
    margin-bottom: 1em;
    text-indent: 2em;
}

/* 右侧设置面板 */
#settings-panel {
    background-color: #f9f9f9;
    border-left: 1px solid #e7e7e7;
    padding: 20px;
    height: calc(100vh - 110px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

body.night-mode #settings-panel {
    background-color: #2c2c2c;
    border-left: 1px solid #444;
}

.settings-header h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7e7e7;
    color: #555;
    transition: all 0.3s ease;
}

body.night-mode .settings-header h3 {
    color: #ccc;
    border-bottom: 1px solid #444;
}

.setting-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

body.night-mode .setting-section {
    border-bottom: 1px solid #444;
}

.setting-section:last-child {
    border-bottom: none;
}

.setting-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555;
    transition: color 0.3s ease;
}

body.night-mode .setting-section h4 {
    color: #ddd;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    color: #666;
    transition: color 0.3s ease;
}

body.night-mode .form-group label {
    color: #bbb;
}

/* 颜色选择器 */
.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    color: white;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* 书签面板 */
.bookmark-panel {
    position: fixed;
    top: 70px;
    right: 30px;
    width: 300px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
}

body.night-mode .bookmark-panel {
    background-color: #2c2c2c;
}

.bookmark-panel.open {
    transform: translateY(0);
    opacity: 1;
}

.bookmark-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

body.night-mode .bookmark-header {
    border-bottom: 1px solid #444;
}

.bookmark-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
}

body.night-mode .bookmark-header h3 {
    color: #e0e0e0;
}

.bookmark-list {
    max-height: 400px;
    overflow-y: auto;
}

.bookmark-list ul {
    margin: 0;
    border-radius: 0;
}

.bookmark-item {
    position: relative;
    padding-right: 40px !important;
}

.bookmark-item a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

body.night-mode .bookmark-item a {
    color: #e0e0e0;
}

.bookmark-item a:hover {
    color: #337ab7;
}

.remove-bookmark {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.remove-bookmark:hover {
    opacity: 1;
}

.bookmark-actions {
    padding: 15px;
    border-top: 1px solid #eee;
}

body.night-mode .bookmark-actions {
    border-top: 1px solid #444;
}

/* 按钮样式调整 */
.btn {
    transition: all 0.2s ease;
}

.btn-default {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

body.night-mode .btn-default {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

.btn-default:hover {
    background-color: #e9e9e9;
}

body.night-mode .btn-default:hover {
    background-color: #4a4a4a;
}

.btn-primary {
    background-color: #337ab7;
    border-color: #2e6da4;
}

.btn-primary:hover {
    background-color: #286090;
}

.btn-warning {
    background-color: #f0ad4e;
    border-color: #eea236;
}

.btn-warning:hover {
    background-color: #ec971f;
}

.btn-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* 禁用状态按钮 */
.btn.disabled, .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
    